package com.example.figurehecheng.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 * 景点表
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("scenery")
@ApiModel(value="Scenery对象", description="景点表")
public class Scenery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "景点ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "景点名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "景点特色描述")
    @TableField("feature")
    private String feature;

    @ApiModelProperty(value = "历史背景")
    @TableField("history_background")
    private String historyBackground;

    @ApiModelProperty(value = "价格(分)")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "折扣价(分)")
    @TableField("discount")
    private Integer discount;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "开放时间")
    @TableField("open_time")
    private LocalTime openTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalTime endTime;

    @ApiModelProperty(value = "景点类型(1:文化景点 2:自然景点)")
    @TableField("tour_type")
    private Integer tourType;

    @ApiModelProperty(value = "剩余票数")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private BigDecimal latitude;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "状态(0:下架 1:上架)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "商家id")
    @TableField("mid")
    private Integer mid;

}
